﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<InternshipManagement.Models.Student>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    Profile
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
<script src="<%: Url.Content("~/Scripts/jquery.validate.min.js") %>" type="text/javascript"></script>
<script src="<%: Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js") %>" type="text/javascript"></script>
<% 
        
        ViewBag.ProfiletOp = 1;
        Html.RenderPartial("StudentProfileMenu"); 
    %>
 <% using (Html.BeginForm())
       { %>
    <%: Html.ValidationSummary(true) %>
    <fieldset class="twocolumns">
        <div class="editor-field">
            <%: Html.LabelFor(model => model.User.UserName)%>
            <%: Html.TextBoxFor(model => model.User.UserName, new { disabled = "disabled", @readonly = "readonly" })%>
        </div>
        <div class="editor-field">
            <%: Html.LabelFor(model => model.StudentNumber) %>
            <%: Html.TextBoxFor(model => model.StudentNumber, new { disabled = "disabled", @readonly = "readonly" })%>
        </div>
        <div class="editor-label">
            <%: Html.ValidationMessageFor(model => model.Name)%>
        </div>
        <div class="editor-field">
            <%: Html.LabelFor(model => model.Name)%>
            <%: Html.EditorFor(model => model.Name)%>
        </div>
        <div class="editor-label">
            <%: Html.ValidationMessageFor(model => model.Surname)%>
        </div>
        <div class="editor-field">
            <%: Html.LabelFor(model => model.Surname)%>
            <%: Html.EditorFor(model => model.Surname)%>
        </div>
        <div class="editor-label">
            <%: Html.ValidationMessageFor(model => model.Address)%>
        </div>
        <div class="editor-field">
            <%: Html.LabelFor(model => model.Address)%>
            <%: Html.TextAreaFor(model => model.Address)%>
        </div>
        <div class="editor-label">
            <%: Html.ValidationMessageFor(model => model.Phone1)%>
        </div>
        <div class="editor-field">
            <%: Html.LabelFor(model => model.Phone1)%>
            <%: Html.EditorFor(model => model.Phone1)%>
        </div>
        <div class="editor-label">
            <%: Html.ValidationMessageFor(model => model.Phone2)%>
        </div>
        <div class="editor-field">
            <%: Html.LabelFor(model => model.Phone2)%>
            <%: Html.EditorFor(model => model.Phone2)%>
        </div>
        <div class="editor-label">
            <%: Html.ValidationMessageFor(model => model.GPA)%>
        </div>
        <div class="editor-field">
            <%: Html.Label("Course")%>
            <%: Html.TextBoxFor(model => model.Course.DisplayName, new { disabled = "disabled", @readonly = "readonly" })%>
        </div>
        <p>
            <input type="submit" value="Save" />
        </p>
    </fieldset>
    <% } %>
</asp:Content>
